//
//  LGUtil.h
//  LoverGo
//  公共类，负责返回一些公共的属性和方法
//  Created by YeXiao on 14-4-15.
//  Copyright (c) 2014年 yexiao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MobClick.h"
typedef enum {
    TypeColorOrange = 0,
    TypeColorGreen,
    TypeColorLogin,
    TypeColorRegister
}TypeColor;
typedef enum{
    TypeImgBG = 0,
}TypeImg;
typedef enum {
    TypeTuiJian,
    TypeShouCang,
    TypeGeRen,
}NavType;

@interface LGUtil : NSObject


+ (UIView *)getLineView;//获取水平线
+ (CGRect)getViewFrame;//获取窗口大小，controller的view
+ (UIBarButtonItem *)getBackButton;//重置BarButtonItem上的返回按钮
+ (UIButton *)get9ScalBtn:(CGRect )rect type:(TypeColor)type;
+ (UIImage *)get9ScalImg:(TypeImg)type;
+ (UIButton *)getBackBtn;
//给viewcontroller加上标题和返回按钮
+ (void)setTypeWithC:(UIViewController*)con titleName:(NSString *)tName backName:(NSString *)bName;
+ (void)setTitleLab:(UILabel* )lab;//viewcontroller上面的title文字
//对应mainviewcontroller中的三个tab
+ (UINavigationController* )getNavByType:(NavType)type controller:(UIViewController*)con;
+ (UILabel *)getTitleLab:(CGRect )rect title:(NSString*)str;
+ (UIButton *)returnLeftBtn;
+ (UIButton *)returnRightBtn;
+ (UIImage *)getUnFoundImage;
+(BOOL)judgeNumber:(NSString *)_number;
//分享接口 url:分享的url，title:标题 img:分享需要的图片(nil) content:内容(nil) c:对应的是在哪个viewcontroller上，用于从分享回来显示的viewcontroller
/* --demo
 UIImage *shareImg = nil;
 if (_shareIView) {
 shareImg = _shareIView.image;
 }
 [LGUtil shareToSNSURL:[NSString stringWithFormat:@"%@lover-go/%@",baseUrl,_info.htmlName] title:@"情侣去哪儿" img:shareImg content:_info.articleTitle
 controller:self];
 */
+ (void)shareToSNSURL:(NSString*)url title:(NSString*)title img:(UIImage*)img content:(NSString*)content controller:(UIViewController*)c;
@end
